﻿using System.Web.Mvc;

namespace Backend.Areas.Kuku
{
    public class KukuAreaRegistration : AreaRegistration 
    {
        public override string AreaName 
        {
            get 
            {
                return "Kuku";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context) 
        {

            context.MapRoute(
                "dong ho",
                "dong-ho",
                new { area = "Kuku", Controller = "DongHo", action = "Index", id = UrlParameter.Optional }
            );
            context.MapRoute(
               "dien thoai",
               "dien-thoai",
               new { area = "Kuku", Controller = "DienThoai", action = "Index", id = UrlParameter.Optional }
           );
            context.MapRoute(
               "Quan ao",
               "quan-ao",
               new { area = "Kuku", Controller = "QuanAo", action = "Index", id = UrlParameter.Optional }
           );
            context.MapRoute(
                "may tinh",
                "may-tinh",
                new { area = "Kuku", Controller = "DongHo", action = "Index", id = UrlParameter.Optional }
            );

            context.MapRoute(
                "Kuku_default",
                "Kuku/{controller}/{action}/{id}",
                new { Controller = "Home", action = "Index", id = UrlParameter.Optional }
            );
        }
    }
}